#ifndef _OCPP_NcDimTime_H__
#define _OCPP_NcDimTime_H__

#include "NcDimWrapper.h"

namespace OCPP
{
	class NcDimTime : public NcDimWrapper
	{
	public:
		NcDimTime(String name,IntVector iv);

		void setTimeUnit(NcVar var);

		const size_t size() override;
		int getInt(size_t i) override;
		float getFloat(size_t i) override;
		String getString(size_t i) override;

		IntVector _iv;
	private:
		std::time_t _secondInterval = (1);
		std::time_t _secondStart = (-1);
	};
}


#endif // !_OCPP_NcTime_H__
